/**
 * 第三方平台Model
 * @authors 杨兴洲（of2502）
 * @date    2017/4/5 18:33
 * @version 1.0
 */

import {model, Schema} from "mongoose";

const ComponentSchema = new Schema({
    appID: String,
    system: String,
    verifyTicket: String,
    accessToken: String,
    expireAt: Date
}, {timestamps: true});
ComponentSchema.index({system: 1});
ComponentSchema.index({appID: 1});

export default model('Component', ComponentSchema);
